// $Id: init.hpp 2 2009-09-02 08:47:42Z joseph2002 $
/*
 * Copyright 2009 Joseph Wu
 * Distributed under the Boost Software License, Version 1.0.
 * (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
 *
 * For more information, see http://xpcomplus.sourceforge.net
 */

#ifndef XPGEN_INIT_HPP
#define XPGEN_INIT_HPP

namespace xpgen {

void init();
void finish();

struct initializer
{
    initializer()
    {
        init();
    }

    ~initializer()
    {
        finish();
    }
};

} // namespace xpgen

#endif // XPGEN_INIT_HPP
